<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
//use \think\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::rule('/', 'admin/Index/main');


Route::rule('admin-login', 'admin/Login/index');
Route::rule('admin-verify', 'admin/Login/verify');  //验证码
Route::rule('admin-login-submit', 'admin/Login/loginSubmit');
Route::rule('admin-login-out', 'admin/Login/loginOut');

// 页面必须使用pathinfo模式，否则权限管理添加不便
//Route::rule('admin-user', 'admin/User/index');
Route::rule('admin-user-infos', 'admin/User/infos');
Route::rule('admin-user-add', 'admin/User/add');
Route::rule('admin-user-edit', 'admin/User/edit');
Route::rule('admin-user-delete', 'admin/User/delete');

//Route::rule('admin-role', 'admin/Role/index');
Route::rule('admin-role-infos', 'admin/Role/infos');
Route::rule('admin-role-add', 'admin/Role/add');
Route::rule('admin-role-edit', 'admin/Role/edit');
Route::rule('admin-role-delete', 'admin/Role/delete');
Route::rule('admin-role-all', 'admin/Role/getAll');
Route::rule('admin-role-all-edit', 'admin/Role/getAllWithUserEdit');

//Route::rule('admin-menu', 'admin/Menu/index');
Route::rule('admin-menu-infos', 'admin/Menu/infos');
Route::rule('admin-menu-add', 'admin/Menu/add');
Route::rule('admin-menu-edit', 'admin/Menu/edit');
Route::rule('admin-menu-delete', 'admin/Menu/delete');
Route::rule('admin-menu-parent', 'admin/Menu/getParent');

Route::rule('admin-permission-all', 'admin/Permission/getAll');
Route::rule('admin-permission-all-edit', 'admin/Permission/getAllWithRoleEdit');

return [

];
